package com.zys.principles.demo4.emp2;

public class B  {
    //如果B需要A的方法，使用组合关系
    private A a = new A();

    public int func1(int a,int b){
        return a + b;
    }

    public int func2(int a,int b){
        return func1(a,b) + 9;
    }

    public int func3(int a,int b){

        return this.a.func1(a,b);
    }

}
